package com.baidu.job;



import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.baidu.util.TestUtil;
import com.jfinal.core.Controller;


/**
 * 刷新任务
 * @author iicm
 * 2016-1-26 17:43
 */
public class RefreshJob extends Controller implements Job{
	
	@Override
	public void execute(JobExecutionContext context)
			throws JobExecutionException {
		try {
		    TestUtil.systemOutPrintln("刷新贴吧任务开始");
			MainJobContent.refreshJob();
		} catch (Exception e) {
			e.printStackTrace();
			TestUtil.systemOutPrintln("刷新贴吧列表出现异常");
		}
	}
}
